<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 211px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="proposalBasicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;园区基本信息</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="园区名称" type="text" 
			class="input_css required" style="width: 80%;"  maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5">
		    <c:set var="submit_date">
			    <x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> 
			    <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" size="33" className="required date"
				label="申报日期"></cpt:date>
		&nbsp;</td>	
	</tr>
     <tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区地址：</td>
		<td nowrap colspan="5"><input 
			name="park/address" label="园区地址" type="text" maxlength="50"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/address" />" /></td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>主要集聚产业：</td>
		<td nowrap colspan="5"><input 
			name="park/industry" label="主要集聚产业" type="text" maxlength="50"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/industry" />" /></td>
	</tr>
	
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>开发单位名称：</td>
		<td nowrap colspan="5"><input 
			name="park/org_name" label="开发单位名称" type="text" maxlength="50"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/org_name" />" /></td>
	</tr>
	 <tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>注册地址：</td>
		<td nowrap colspan="3"><input 
			name="park/reg_address" label="注册地址" type="text" maxlength="50"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/reg_address" />" /></td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>机构代码：</td>
		<td nowrap ><input 
			name="park/org_no" label="机构代码" type="text" maxlength="9"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/org_no" />" /></td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>企业法人：</td>
		<td nowrap colspan="3"><input 
			name="park/legal_cname" label="企业法人" type="text"  maxlength="50"
			class="input_css required" style="width: 80%" 
			value="<x:out select="$xmlData/data/park/legal_cname" />" /></td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>注册资本：</td>
		<td nowrap ><input 
			name="park/reg_fund" label="注册资本" type="text"  onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required" style="text-align:right;width: 80%" 
			value="<x:out select="$xmlData/data/park/reg_fund" />" />万元</td>
	</tr>
   <tr>
		<td nowrap align="right"><span class="color_red">*</span>联系人：</td>
		<td nowrap ><input 
			name="park/contact_psn_cname" label="联系人" type="text" required
			class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/park/contact_psn_cname" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>办公电话：</td>
		<td nowrap ><input 
			name="park/contact_psn_tel" label="办公电话" type="text" required
			class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/park/contact_psn_tel" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>手机号码：</td>
		<td nowrap ><input 
			name="park/contact_psn_mobile" label="手机号码" type="text" required
			class="input_css required mobile"  maxlength="11" 
			value="<x:out select="$xmlData/data/park/contact_psn_mobile" />" />
		</td>
	</tr>
	<tr>
		<td nowrap align="right"><span class="color_red">*</span>传真号码：</td>
		<td nowrap ><input 
			name="park/contact_psn_fax" label="传真号码" type="text" required
			class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/park/contact_psn_fax" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td nowrap ><input 
			name="park/contact_psn_email" label="电子邮箱" type="text" required
			class="input_css required email" maxlength="50"
			value="<x:out select="$xmlData/data/park/contact_psn_email" />" />
		</td>
		<td nowrap align="right"><span class="color_red">*</span>网址：</td>
		<td nowrap ><input 
			name="park/http" label="网址" type="text" required
			class="input_css required "  
			value="<x:out select="$xmlData/data/park/http" />" />
		</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>建设总投资：</td>
		<td nowrap ><input  id="invest_total"
			name="park/invest_total" label="建设总投资" type="text"  
			class="input_css required valueGreatEqual:invest_total:invest_finish"  style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)"
			value="<x:out select="$xmlData/data/park/invest_total" />" />万元</td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>已完成投资：</td>
		<td nowrap colspan="3"><input id="invest_finish_total"
			name="park/invest_finish_total" label="已完成投资" type="text"  onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required gray" disabled style="text-align:right;" 
			value="<x:out select="$xmlData/data/park/invest_finish_total" />" />万元</td>
	</tr>
	<tr>
		<td colspan="6" >&nbsp;<b>已完成投资中</b></td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>企业自筹：</td>
		<td nowrap align="center"><input  id="invest_finish_self"
			name="park/invest_finish_self" label="已完成投资中->企业自筹" type="text"  
			class="input_css required "  style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)"
			onchange="countFundAuto('invest_','finish_self,finish_bank,finish_government,finish_qt','finish_total');" 
			value="<x:out select="$xmlData/data/park/invest_finish_self" />" />万元</td>
			
		<td nowrap width="10%" align="right"><span class="color_red">*</span>银行贷款：</td>
		<td nowrap align="center"><input id="invest_finish_bank"
			name="park/invest_finish_bank" label="已完成投资中->银行贷款" type="text"  onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required" style="text-align:right;"
			onchange="countFundAuto('invest_','finish_self,finish_bank,finish_government,finish_qt','finish_total');" 
			value="<x:out select="$xmlData/data/park/invest_finish_bank" />" />万元</td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>获政府资助：</td>
		<td  nowrap align="center"><input  id="invest_finish_government"
			name="park/invest_finish_government" label="已完成投资中->获政府资助" type="text"  
			class="input_css required "  style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)"
		    onchange="countFundAuto('invest_','finish_self,finish_bank,finish_government,finish_qt','finish_total');" 
			value="<x:out select="$xmlData/data/park/invest_finish_government" />" />万元</td>
		
	</tr>
	<tr>
		
		<td nowrap width="10%" align="right"><span class="color_red">*</span>其他：</td>
		<td colspan="4" width="30%" >
		<input 
			name="park/invest_finish_qt_name" label="已完成投资中->其他名称" type="text" required
			class="input_css required "  style="width: 70%"
			value="<x:out select="$xmlData/data/park/invest_finish_qt_name" />" /></td>
		<td nowrap align="center" ><input id="invest_finish_qt"
			name="park/invest_finish_qt" label="已完成投资中->其他金额" type="text"  onfocus="InitInput.setNumber(this,7,4,2)"
			class="input_css required" style="text-align:right;" 
			onchange="countFundAuto('invest_','finish_self,finish_bank,finish_government,finish_qt','finish_total');" 
			value="<x:out select="$xmlData/data/park/invest_finish_qt" />" />万元</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区（基地）总面积：</td>
		<td nowrap colspan="2"><input  id="area_total"
			name="park/area_total" label="园区（基地）总面积" type="text"  
			class="input_css required valueGreatEqual:area_total:area_ggfw"  style="text-align:right; width: 80%" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/park/area_total" />" />平方米</td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>公共服务场地面积：</td>
		<td nowrap colspan="2"><input id="area_ggfw"
			name="park/area_ggfw" label="公共服务场地面积" type="text"  onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required valueGreatEqual:area_ggfw:area_ggfw_yjc" style="text-align:right;width: 80%"
			value="<x:out select="$xmlData/data/park/area_ggfw" />" />平方米</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>已建成园区（基地）面积：</td>
		<td nowrap colspan="2"><input  id="area_total"
			name="park/area_total_yjc" label="已建成园区（基地）面积" type="text"  
			class="input_css required valueGreatEqual:area_total:area_total_yjc"  style="text-align:right; width: 80%" onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/park/area_total_yjc" />" />平方米</td>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>已建成公共服务场地面积：</td>
		<td nowrap colspan="2"><input id="area_ggfw"
			name="park/area_ggfw_yjc" label="已建成公共服务场地面积" type="text"  onfocus="InitInput.setNumber(this,7,0,0)"
			class="input_css required valueGreatEqual:area_total_yjc:area_ggfw_yjc" style="text-align:right;width: 80%"
			value="<x:out select="$xmlData/data/park/area_ggfw_yjc" />" />平方米</td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区（基地）建设方式：</td>
		<td colspan="5">
		<input name="park/construction_way_value" id="construction_way_value" type="hidden" value="<x:out select="$xmlData/data/park/construction_way_value" />" class="required " label="园区（基地）建设方式"/>
		<input name="park/construction_way_name" type="hidden" value="<x:out select="$xmlData/data/park/construction_way_name" />" />
		<c:set var="construction_way_value"><x:out select="$xmlData/data/park/construction_way_value" /></c:set>
		<cpt:select id="construction_way" key="construction_way" onChange="initControlValue('construction_way');setOtherName('construction_way_value')" value="${construction_way_value}" className="selectWidth2"></cpt:select> 
	    <span id="construction_way_value_other"><span class="color_red">*（请注明）</span><input id="construction_way_value_other_name" maxlength="50" style="width:300px"  label="园区（基地）建设方式->选择其他时，请注明" name="park/construction_way_other_name"  value="<x:out select="$xmlData/data/park/construction_way_other_name" />" /></span>
	    </td>
	    
    </tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>园区（基地）产权情况：</td>
		<td nowrap colspan="5"><input 
			name="park/property_situation" label="园区（基地）产权情况" type="text" maxlength="50"
			class="input_css required" style="width: 80%;" 
			value="<x:out select="$xmlData/data/park/property_situation" />" /></td>
	</tr>
	<tr>
		<td nowrap width="10%" align="right"><span class="color_red">*</span>目前所处阶段：</td>
		<td colspan="5">
		<input name="park/present_stage_value" id="present_stage_value" type="hidden" value="<x:out select="$xmlData/data/park/present_stage_value" />" class="required " label="目前所处阶段"/>
		<input name="park/present_stage_name" type="hidden" value="<x:out select="$xmlData/data/park/present_stage_name" />" />
		<c:set var="present_stage_value"><x:out select="$xmlData/data/park/present_stage_value" /></c:set>
		<cpt:select id="present_stage" key="present_stage" onChange="initControlValue('present_stage');setOtherName('present_stage_value')" value="${present_stage_value}" className="selectWidth2"></cpt:select> 
	    <span id="present_stage_value_other"><span class="color_red">*（请注明）</span><input id="present_stage_value_other_name" maxlength="50" style="width:300px"  label="目前所处阶段->选择其他时，请注明" name="park/present_stage_other_name"  value="<x:out select="$xmlData/data/park/present_stage_other_name" />" /></span>
	    </td>
    </tr>
	
	<tr>
		<td nowrap align="right" ><span class="color_red">*</span>获得市文化产业园区（基地）认定时间：</td>
		<td nowrap colspan="2">
		    <c:set var="hold_date"><x:out select="$xmlData/data/park/hold_date" /></c:set> 
			<cpt:date id="hold_date" name="park/hold_date" value="${hold_date}"  className="required date" label="获得市文化产业园区（基地）认定时间"></cpt:date>
	    </td>	
		<td nowrap width="10%" align="right"><span class="color_red">*</span>认定证书编号：</td>
		<td nowrap colspan="2"><input 
			name="park/hold_no" label="认定证书编号" type="text" 
			class="input_css required" style="width: 80%;"  maxlength="50"
			value="<x:out select="$xmlData/data/park/hold_no" />" /></td>
	</tr>
</table>
<br>
<div class="t_bar"><span class="color_red">*</span>园区（基地）近三年曾获政府资助的情况（金额单位：万元）</div>
 <table id="tblParks" border="0" cellspacing="0" cellpadding="0" class="t_css table01" >
			<tbody>
			<tr>
				<th nowrap width="3%">选择</th>
				<th nowrap width="2%">序号</th>
				<th nowrap width="15%">项目名称</th>
				<th nowrap width="10%">资助部门</th>
				<th nowrap width="10%">资助时间</th>
				<th nowrap width="10%">资助金额</th>
				<th nowrap width="10%">资助方式</th>
				<th nowrap width="10%">项目验收情况</th>
				<th nowrap width="10%">验收时间</th>
				<th nowrap width="10%">借款偿还情况</th>
				<th nowrap width="10%">偿还日期</th>
			</tr>
			<tr style="display: none" >
				<td nowrap align="center"><input type="radio" name="selParks" ></td>
				<td align="center">
					<span name="park|fund_project[0]@seq_no" >[index]</span>
				</td>
				<td align="center">
					<input type="text" name="park|fund_project[0]|ctitle" style="width:80%" class="input_text required" label="项目名称" value=""  maxlength="50"/>
				</td>
				<td align="center">
					<input type="text" name="park|fund_project[0]|award_dept" style="width:80%" class="required" maxlength="50" label="资助部门" value=""/>
				</td>
				<td  align="center" nowrap="nowrap">
          		<cpt:date id="award_date_[index]" name="park|fund_project[0]|award_date"  size="9" value="" className=" required date" label="资助时间"></cpt:date>
				</td>
				<td align="center">
					<input type="text" name="park|fund_project[0]|award_amt" class=" required" label="资助金额" value="" onfocus="InitInput.setNumber(this,7,4,2);" style="text-align:right;width:80%"/>
				</td>
				<td align="center" align="center">
				  <cpt:select id="award_type_[index]" key="award_type" label="award"  name="award_type" onChange="initControlValue(this.id)" value=""></cpt:select>
		           <input type="hidden" name="park|fund_project[0]|award_type_value" class="required" label="资助方式" value=""/>
		           <input type="hidden" name="park|fund_project[0]|award_type_name" value=""/>
				</td>
				<td>
					<cpt:select id="accept_flag_[index]" key="accept" label="accept" name="accept_flag" onChange="initControlValue(this.id)" value=""></cpt:select>
		            <input type="hidden" name="park|fund_project[0]|accept_flag_value" class="required" value=""  label="验收情况"/>
		            <input type="hidden" name="park|fund_project[0]|accept_flag_name" value=""/>
	        	</td>
				<td nowrap="nowrap" align="center">
          		<cpt:date id="accept_date_[index]" name="park|fund_project[0]|accept_date"  size="9"  value="" className="required date" label="验收时间" ></cpt:date>
				</td>
			    <td align="center" align="center">
					<cpt:select id="repay_flag_[index]" key="repay" label="repay" name="repay_flag"  onChange="initControlValue(this.id)" value=""></cpt:select>
		            <input type="hidden" name="park|fund_project[0]|repay_flag_value" class="required" value=""  label="偿还情况"/>
		            <input type="hidden" name="park|fund_project[0]|repay_flag_name" value=""/>
	        	</td>
				<td nowrap="nowrap" align="center">
          		<cpt:date id="repay_date_[0]" name="park|fund_project[0]|repay_date" value=""  size="8"  className="required date" label="偿还日期" ></cpt:date>
          		</td>
			</tr>
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/park/fund_project" var="fund_project">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td  align="center" ><input type="radio" name="selParks"></td>
					<td align="center">
						<span name="park/fund_project[${flag}${index}]@seq_no"><x:out select="$fund_project/@seq_no" /></span>
					</td>
					<td align="center">
						<input type="text" name="park/fund_project[${flag}${index}]/ctitle" style="width:80%" value="<x:out select="$fund_project/ctitle" />" maxlength="50" class="input_text required" label="项目名称"/>
					</td>
					<td align="center">
						<input type="text" name="park/fund_project[${flag}${index}]/award_dept"  style="width:80%" value="<x:out select="$fund_project/award_dept" />" maxlength="50" class=" required" label="资助部门"/>
					</td>
					<td nowrap="nowrap" align="center">
						<c:set var="award_date"><x:out select="$fund_project/award_date" /></c:set>
	          			<cpt:date id="award_date${index}" size="9" name="park/fund_project[${flag}${index}]/award_date" value="${award_date }" className=" required date" label="资助时间" ></cpt:date>
					</td>
					<td align="center">
						<input type="text"  name="park/fund_project[${flag}${index}]/award_amt" value="<x:out select="$fund_project/award_amt" />"   class=" required" label="资助金额" onfocus="InitInput.setNumber(this,7,4,2)"  style="text-align:right;width:80%" />
					</td>
					<td align="center" align="center">
					    <c:set var="award_type_value"><x:out select="$fund_project/award_type_value" /></c:set>
						<cpt:select id="award_type${index}" key="award_type" label="award" name="award_type"  onChange="initControlValue(this.id)" value="${award_type_value }"></cpt:select>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/award_type_value" class="required" label="资助方式" value="<x:out select="$fund_project/award_type_value" />"/>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/award_type_name" value="<x:out select="$fund_project/award_type_name" />"/>
					</td>
				<td>
						<c:set var="accept_flag_value"><x:out select="$fund_project/accept_flag_value" /></c:set>
						<cpt:select id="accept_flag${index}" key="accept" name="accept_flag" onChange="initControlValue(this.id)" value="${accept_flag_value }"></cpt:select>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/accept_flag_value" class="required" value="<x:out select="$fund_project/accept_flag_value" />"  label="验收情况"/>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/accept_flag_name" value="<x:out select="$fund_project/accept_flag_name" />"/>
          			</td>
					<td nowrap="nowrap" align="center">
						<c:set var="accept_date"><x:out select="$fund_project/accept_date" /></c:set>
	          			<cpt:date id="accept_date${index}" size="9" name="park/fund_project[${flag}${index}]/accept_date" value="${accept_date }" className="required date" label="验收时间"></cpt:date>
					</td>
					<td align="center" align="center">
						<c:set var="repay_flag_value"><x:out select="$fund_project/repay_flag_value" /></c:set>
						<cpt:select id="repay_flag${index}" key="repay" name="repay_flag"   onChange="initControlValue(this.id)" value="${repay_flag_value }"></cpt:select>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/repay_flag_value" class="required" value="<x:out select="$fund_project/repay_flag_value" />"  label="偿还情况"/>
			            <input type="hidden" name="park/fund_project[${flag}${index}]/repay_flag_name" value="<x:out select="$fund_project/repay_flag_name" />"/>
          			</td>
					<td nowrap="nowrap" align="center">
						<c:set var="repay_date"><x:out select="$fund_project/repay_date" /></c:set>
	          			<cpt:date id="repay_date${index}" size="9" name="park/fund_project[${flag}${index}]/repay_date" value="${repay_date }" className="required date" label="偿还日期" ></cpt:date>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
		</table>
		<div class="clear_h15" ></div>
		<div align="left" >
		  	<input class="button_02"  type="button" value="添加" onclick="addNewRow('tblParks');showDateTag('tblParks');try{top.resizeFrame();}catch(e){};">
			&nbsp;<input class="button_02" type="button" value="上移" onclick="movePrev('tblParks')">
			&nbsp;<input class="button_02" type=button value="下移" onclick="moveNext('tblParks')">
			&nbsp;<input class="button_02" name="cmddel" id="cmddelPsn3" type=button value="删除" onclick="deleteSelectedRow('tblParks','园区（基地）近三年曾获政府资助的情况');">
		</div>
		<div class="clear_h15" ></div>
	<script>
	$(document).ready (function() {
		setOtherName('present_stage_value');
		setOtherName('construction_way_value');
	});
	function setOtherName(id){
		
		var value=$("#"+id).val();
	   if(value==99){
			$("#"+id+"_other").show();
			$("#"+id+"_other_name").addClass("required");
		}else{
			$("#"+id+"_other").hide();
			$("#"+id+"_other_name").val("");
			$("#"+id+"_other_name").removeClass("required");
		}
		
		
	}
	</script>
		